package ru.spb.osll.myfit.server.log;

import org.apache.log4j.Level;
import org.apache.log4j.Logger;

import ru.spb.osll.myfit.client.log.LoggingService;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;

public class LoggingServiceImpl extends RemoteServiceServlet implements
    LoggingService {

  private Logger log = Logger.getLogger(getClass());
  private static final long serialVersionUID = -8825893854513177715L;

  public void logClientIssue(int level, String message) {
    Level loglevel = Level.toLevel(level);
    log.log(loglevel, message);
  }
}